home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / wtj009.zip / TOOLBAR.ZIP / SAMPLE.TB < prev    next >
Text File  |  1992-04-30  |  2KB  |  49 lines

  1. TOOLBAR "sampletoolbar"        # names created    resource (one word)
  2.  
  3.     # blank lines (above) are OK as are lines begining w/tabs & '#' char
  4. ORIENT VERTICAL            # must be VERTICAL or HORIZONTAL
  5. CELLSIZE 32, 32            # size of cell (1x1 bitmap) as X, Y
  6. MASTERCELLS 2, 2        # number of master cells as X, Y
  7. SLAVECELLS 2, 2            # number of slave cells as X, Y
  8.                 # SLAVECELLS line may be ommited if no slave
  9.                 # tools are used (i.e. no MASTERTOOLs)
  10.  
  11. # note that the MASTER/SLAVECELLS line creates only the space reserved for the
  12. # tools, as per it uses the Levaro design. Tools may be multiple cells wide
  13. # or tall (see examples) but must include the space between tools (i.e. a
  14. # 1x2 cell bitmap should be 32x65 pixels, a 2x3 should be 65x98 pixels.
  15.  
  16. BEGIN                # required to begin toolbar
  17.     TOOLSET 1        # beginning of toolset 1
  18.     BEGIN
  19.         TOOL "bitmapname", 101      # non-hierarchical tool, uses
  20.                         # "bitmapname" as bitmap and returns
  21.                         # notification code 101 when pressed
  22.         MASTERTOOL "bitmap"         # hierarchical tool, uses "bitmap"
  23.                         # as bitmap, returns no notification
  24.                         # instead diplays slave tools:
  25.         BEGIN                # begin this tools slaves
  26.             TOOL "bitmap", 201  # first slave (only non-hierarchy)
  27.             TOOL "bitmap", 202  # second slave
  28.             TOOL "bitmap", 203  # third slave
  29.             TOOL "bitmap", 204  # last slave, if any of the prev.
  30.                         # slaves were, say, a 2x1 size tool
  31.                         # the fourth tool could be ommited
  32.                         # if included, it is ignored.
  33.         END                # end of master tool
  34.         MASTERTOOL "desert"        # next master tool (hierarchical)
  35.         BEGIN
  36.             TOOL "coyote", 301  # it's slave tools
  37.             TOOL "cactus", 302
  38.             TOOL "canteen", 303
  39.             TOOL "footprints", 304
  40.         END
  41.         TOOL "toolbox", 102        # last two master tools
  42.         TOOL "arrows", 103        # (non-hierarchical)
  43.         # note that above line generates error as it's the fifth
  44.         # master tool in a 2x2 cell space
  45.     END # end toolset            # end first toolset
  46.  
  47.     # TOOLSET 2 could begin here, but only one in this sample
  48.  
  49. END # so end toolbar signifying only one toolset